/** \file BendRelease.h
    \author belot.nicolas
    Multiple Bend and Release
*/

#ifndef BENDRELEASE_H 
#define BENDRELEASE_H 1

#include "PlayingEffect.h"
#include "Converter.h"

namespace libtrckr {

class BendRelease : public PlayingEffect {
	/** \class libtrckr::BendRelease
	\brief Multiples Bends and Releases
	\note releases is considered as an inverse bend
	*/
	public :
	/** Contructor */
		BendRelease();
	/** Copy Contructor */
		BendRelease(const BendRelease&);
	/** Destructor */
		~BendRelease();
	/** Tune the bends and releases
	\param conf each bends take 3 parametre duration, ratio, how long we maitain.
	*/
		void Tune(DynArray<double>);

		Buffer& apply(Buffer&,int*);

	private:
		Converter c;
 		DynArray<DynArray<double> > info;
		double elapsed;
		//double duration, speed, elapsed,ratio,maintain;
};

}
#endif

